﻿app.controller('ReservePayResultCtrl', ['$scope', '$http', 'httpPlus', '$stateParams', function ($scope, $http, httpPlus, $stateParams) {
    var billGuid =$stateParams.billid;
    httpPlus
        .MMB2RRRApi('MBBillHis/InitQuickPayPayResult2Page', {
            _billGUID:billGuid
        })
        .then(function(data){
            console.log(data);
            $scope.eventDetail.billHead = data.BillHead;
            $scope.eventDetail.billItems = data.BillItems;
        })
        .catch(function(err){
            alert(err.ResultMsg);
        })
    $scope.eventDetail = {
       billHead:undefined,
       billItems:undefined
    };

}]);
